package com.carcontrol.rotate.bean;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * 测试用，不用管
 * Created by yuanyi on 2020/5/30.
 */
public class PersonBean implements Parcelable {
	private static final long serialVersionUID = 1L;

	private int id;
	private String deviceId;
	private String name;
	private String password;
	private String type;
	private String uijson;
	transient Bitmap bitmapbj;

	protected PersonBean() {
	}

	protected PersonBean(Parcel in) {
		id = in.readInt();
		deviceId = in.readString();
		name = in.readString();
		password = in.readString();
		type = in.readString();
		uijson = in.readString();
	}

	public static final Creator<PersonBean> CREATOR = new Creator<PersonBean>() {
		@Override
		public PersonBean createFromParcel(Parcel in) {
			return new PersonBean(in);
		}

		@Override
		public PersonBean[] newArray(int size) {
			return new PersonBean[size];
		}
	};

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getDeviceId() {
		return deviceId;
	}
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getUijson() {
		return uijson;
	}
	public void setUijson(String uijson) {
		this.uijson = uijson;
	}

	public Bitmap getBitmapbj() {
		return bitmapbj;
	}

	public void setBitmapbj(Bitmap bitmapbj) {
		this.bitmapbj = bitmapbj;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeString(deviceId);
		dest.writeString(name);
		dest.writeString(password);
		dest.writeString(type);
		dest.writeString(uijson);
	}

//	@Override
//	public String toString() {
//		return name+"==="+bitmapbj;
//	}
}
